﻿//-----------------------------------------------------------------------------
//<filedescription file="ArrayBuilder.DiskSettingsDialog.cs" company="Microsoft">
//  <copyright>
//     Copyright © Microsoft Corporation.  All rights reserved.
//     ***  DESIGNATED SAMPLE CODE (per the included software license terms) ***
//      THIS CODE SAMPLE IS MADE AVAILABLE TO YOU WITHOUT WARRANTY OF ANY KIND
//      AND CONFERS NO RIGHTS ON YOU WHATSOEVER EXCEPT THE RIGHT TO REVIEW IT
//      SOLELY AS A REFERENCE.  THE ENTIRE RISK OF USE OR RESULTS FROM USE OF
//      THIS CODE SAMPLE REMAINS WITH YOU.
//  </copyright>
//  <purpose>
//     A dialog within the Array Builder UI framework that allows the user
//     to define settings specific to physical disks.
//
//  </purpose>
//  <notes>
//  </notes>
//</filedescription>
//-----------------------------------------------------------------------------

using System;
using System.Windows.Forms;
using System.Globalization;
using System.Xml;
using Microsoft.ConfigurationManagement.IntegrationDevelopmentKit;

namespace Microsoft.ConfigurationManagement.OemDeployment.ArrayBuilder
{
    /// <summary>
    /// 
    /// </summary>
    public partial class DiskSettingsDialog : Form
    {

        #region Properties

        /// <summary>
        /// 
        /// </summary>
        public int DiskQuantity
        {
            get { return (int)numericUpDown1.Value; }

        }

        #endregion

        #region Constructor

        /// <summary>
        /// 
        /// </summary>
        public DiskSettingsDialog()
        {
            InitializeComponent();
            this.TopMost = true;
        }


        #endregion

        #region Event handlers

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
                
            this.Close();
        }

        #endregion


    }
}
